package model

import (
	"time"
)

type AuUser struct {
	Uid            int       `xorm:"not null pk autoincr INT(10)"`
	UserName       string    `xorm:"not null unique VARCHAR(30)"`
	Passwd         string    `xorm:"not null VARCHAR(32)"`
	NickName       string    `xorm:"not null VARCHAR(30)"`
	RealName       string    `xorm:"not null VARCHAR(30)"`
	Avatar         string    `xorm:"not null VARCHAR(600)"`
	SmsMobile      string    `xorm:"not null VARCHAR(20)"`
	PwdMobile      string    `xorm:"unique VARCHAR(20)"`
	RegDate        time.Time `xorm:"not null DATETIME"`
	LastModifyTime time.Time `xorm:"not null DATETIME"`
	LasLoginTime   time.Time `xorm:"not null DATETIME"`
	Status         int       `xorm:"not null SMALLINT(3)"`
	IsAccountSend  int       `xorm:"default 1 TINYINT(1)"`
	Sex            int       `xorm:"default 0 TINYINT(4)"`
	UIdcard        string    `xorm:"VARCHAR(20)"`
}
